package com.action.organization;

import java.util.*;

import com.db.organization.*;

public class OrgOutputAction {
	private List<JobVO> jlist;
	private List<DeptVO> dlist;
	private DeptJobDAO orgDAO;
	
	public void setOrgDAO(DeptJobDAO orgDAO) {
		this.orgDAO = orgDAO;
	}	
	public List<JobVO> getJlist() {
		return jlist;
	}
	
	public List<DeptVO> getDlist() {
		return dlist;
	}

	public String getOrgList(){
		String result = "";
		try {
			jlist = orgDAO.getJobList();
			dlist = orgDAO.getDeptList();
			result = "success";
		} catch (Exception e) {
			System.out.println("OrgOutputAction.getOrgList():"+e.toString());
			result = "error";
		}
		return result;
	}
}
